import React from 'react'
import { Outlet, NavLink } from 'react-router-dom'

export default function Home() {
  return (
    <div>
      <h2>Home</h2>
      <NavLink to="/home/test">test</NavLink>
      <NavLink to="/home/demo">demo</NavLink>
      <hr />
      {/* 专门用来渲染当前组件中的嵌套路由组件 */}
      <Outlet></Outlet>
      <hr />
    </div>
  )
}
